package cn.ihoway.dao;

import cn.ihoway.entity.Allocation;

import java.util.List;

public interface AllocationDao {
    int deleteByPrimaryKey(Integer id);

    int deleteBySessionId(String sessionId);

    int insert(Allocation record);

    int insertSelective(Allocation record);

    Allocation selectByPrimaryKey(Integer id);

    Allocation searchBySessionId(String sessionId);

    Allocation searchByPlayerId(String roomId,String playerId);

    List<Allocation> searchByRoomId(String roomId);

    int updateByPrimaryKeySelective(Allocation record);

    int updateByPrimaryKey(Allocation record);
}